<div class="title">商品添加 - {$cname}</div>
<div class="data-edit clear">
	<form method="post" enctype="multipart/form-data">
	<input type="hidden" value="{$cid}" name="cid" />
	<table>
		<tr><th>商品名：</th><td><input type="text" name="gname" /></td></tr>
		<tr><th>商品编号：</th><td><input type="text" name="identifier" /></td></tr>
		<tr><th>商品价格：</th><td><input type="text" name="price" /></td></tr>
		<tr><th>商品库存：</th><td><input type="text" name="stock"/></td></tr>
		<tr><th>商品图片：</th><td><input type="file" name="thumb" class="file" /></td></tr>
		<tr><th>是否上架：</th><td><select name="status"><option value="yes">是</option><option value="no">否</option></select></td></tr>
		<tr><th>首页推荐：</th><td><select name="is_best"><option value="no">否</option><option value="yes">是</option></select></td></tr>
		<tr><th>商品描述：</th><td><textarea name="description"></textarea></td></tr>
		<foreach name="attr" item="v">
			<tr><th>{$v.aname}：</th><td><present name="v.a_def_val.1">
				<select name="attr[{$v.aid}]">
					<option value="0">未选择</option>
					<foreach name="v.a_def_val" item="vv">
						<option value="{$vv}">{$vv}</option>
					</foreach>
				</select>
			<else/>
				<input type="text" name="attr[{$v.aid}]" value="{$v.a_def_val.0}" />
			</present></td></tr>
		</foreach>
		<tr class="tr_btn center">
			<td colspan="2"><input type="submit" value="确定" /><input type="reset" value="重置" /></td>
		</tr>
	</table>
	</form>
</div>